package cz.proks.easyhelpdesk.gwt.ui.widget;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class NoPermissionLabel extends Composite {

    private static NoPermissionLabelUiBinder uiBinder = GWT.create(NoPermissionLabelUiBinder.class);
    
    interface NoPermissionLabelUiBinder extends UiBinder<Widget, NoPermissionLabel> {
    }

    @UiField Label messageLabel;
    
    public NoPermissionLabel() {
        initWidget(uiBinder.createAndBindUi(this));
    }

    public void setText(String text) {
        messageLabel.setText(text);
    }
    
    public String getText() {
        return messageLabel.getText();
    }
    
}
